<template>
	<view class="all">
		<view class="body">
			<view class="one">
				未完结金额(元)
			</view>
			<view class="two flex_sp">
				<view class="left">
					2562.3
				</view>
				<view class="right">
					2017-03.10
				</view>
			</view>
			<view class="solid"></view>
			<view class="bot">
				<view class="box">
					<view class="s1">
						930.29
					</view>
					<view class="s2">
						项目收益
					</view>
				</view>
				<view class="solid2">

				</view>
				<view class="box">
					<view class="s1">
						930.29
					</view>
					<view class="s2">
						项目收益
					</view>
				</view>
			</view>
		</view>
		<view class="center">
			<view class="one flex_sp">
				<view class="left">
					订单收益
					<text v-show="!show" @click="pop()">展开</text>
					<text v-show="show" @click="pop()">收起</text>
				</view>
				<view class="right">
					￥200.03
				</view>
			</view>
			<view class="title">
				2022-11-15 09:40:30
			</view>
			<view class="title">
				订单号：541566146
			</view>
			<view class="info" v-show="show">
				<view class="cary">
					项目明细
				</view>
				<view class="box flex_sp">
					<view class="l1">
						服务时间
					</view>
					<view class="r1">
						2022-11-02
					</view>
				</view>
				<view class="box flex_sp">
					<view class="l1">
						项目服务名称x1
					</view>
					<view class="r1">
						￥607
					</view>
				</view>
				<view class="box flex_sp">
					<view class="l1">
						优惠卷金额
					</view>
					<view class="r1">
						-￥0.00
					</view>
				</view>
				<view class="box flex_sp">
					<view class="l1">
						项目总金额
					</view>
					<view class="r1">
						￥609.72
					</view>
				</view>
				<view class="box flex_sp">
					<view class="l1">
						分成比例
					</view>
					<view class="r1">
						50%
					</view>
				</view>
				<view class="solid">

				</view>
				<view class="box flex_sp">
					<view class="l1">
						应得收益
					</view>
					<view class="r2">
						￥609.72
					</view>
				</view>
			</view>
			<view class="info" v-show="show">
				<view class="cary">
					车费明细
				</view>
				<view class="box flex_sp">
					<view class="l1">
						车费收益
					</view>
					<view class="r1">
						￥59.10
					</view>
				</view>
				<view class="solid">
			
				</view>
				<view class="box flex_sp">
					<view class="l1">
						车费收益
					</view>
					<view class="r2">
						￥59.72
					</view>
				</view>
			</view>
			<view class="last flex_sp" v-show="show">
				<view class="left">
					实际收益
				</view>
				<view class="right">
					304.86-2.24+59.10+￥361.72
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show:false
			};
		},
		methods: {
			pop(){
				this.show=!this.show
			}
		}
	}
</script>

<style lang="scss" scoped>
	.all {
		padding: 15px;

		.body {
			background: #FB774B;
			border-radius: 10px;
			padding: 10px;
			box-sizing: border-box;
			margin: 20px 0;

			.one {
				font-size: 14px;
				font-weight: 400;
				color: #FFFFFF;
				margin: 0 0 10px 0;
			}

			.two {
				.left {
					font-size: 24px;
					font-weight: 900;
					color: #FFFFFF;
				}

				.right {
					font-size: 12px;
					font-weight: 400;
					color: #FFFFFF;
				}

				.right2 {
					background: #FFFFFF;
					border-radius: 26px;
					padding: 5px 15px;
					text-align: center;
					font-size: 14px;
					font-weight: bold;
					color: #FB774B;
				}
			}

			.solid {
				width: 100%;
				height: 1px;
				background-color: #fff;
				margin: 10px 0;
			}

			.bot {
				display: flex;

				.box {
					flex: 1;
					text-align: center;

					.s1 {
						font-size: 22px;
						font-weight: 900;
						color: #FFFFFF;
					}

					.s2 {
						font-size: 12px;
						font-weight: 400;
						color: #FFFFFF;
					}
				}

				.solid2 {
					width: 2px;
					height: 33px;
					background-color: #eeeeee;
				}
			}
		}

		.center {
			background: #F5F5F5;
			border-radius: 10px;
			padding: 15px 15px 15px 15px;

			.one {
				margin-bottom: 10px;

				.left {
					font-size: 13px;
					font-weight: bold;
					color: #333333;

					text {
						margin: 0 10px;
						font-size: 12px;
						font-weight: bold;
						color: #FB774B;
					}
				}

				.right {
					font-size: 13px;
					font-weight: bold;
					color: #333333;
				}
			}

			.title {
				font-size: 13px;
				font-weight: 400;
				color: #999999;
				margin-bottom: 10px;
			}

			.info {
				margin: 10px 0;
				background: #FFFFFF;
				border-radius: 10px;
				padding: 10px;

				.cary {
					font-size: 14px;
					font-weight: bold;
					color: #333333;
				}

				.box {
					margin: 10px 0;

					.l1 {
						font-size: 14px;
						font-weight: 400;
						color: #333333;
					}

					.r1 {
						font-size: 14px;
						font-weight: 400;
						color: #999999;
					}

					.r2 {
						font-size: 16px;
						font-weight: bold;
						color: #999999;
					}
				}

				.solid {
					width: 100%;
					height: 2px;
					background-color: #eeeeee;
				}
			}
			.last{
				.left{
					font-size: 16px;
					font-weight: bold;
					color: #333333;
				}
				.right{
					font-size: 12px;
					font-weight: bold;
					color: #333333;
				}
			}
		}
	}
</style>